import java.util.ArrayList;
import java.util.NavigableSet;
import java.util.SortedSet;
import java.util.TreeSet;

import javax.swing.UIManager;


import com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel;

/**
 * 
 */

/**
 * @author animesh
 *
 */
public  class Global {
	
public static int delay;
public static int base;
public static String state;
public static MusicBuffer musicBuffer = new MusicBuffer();
public static GUI gui ;
public static FreeHand freehand;
public static Raga raga;
public static NavigableSet<Integer> div_arohan;
public static NavigableSet<Integer> div_avrohan;
public static int max_x;
public static int max_y;
public static int widthup;
public static int widthdown;

public static void initialize()
{
	try
	{
	delay = 500;
	base = 60;
	state = "arohan";
	 raga= new Raga("/media/Acad/FinalMajor/Oryx/src/shaymkalyan.xml");
	UIManager.setLookAndFeel(new NimbusLookAndFeel());

	max_x=600;
	max_y=600;
	freehand = new FreeHand();
	gui = new GUI();

	div_arohan= new TreeSet<Integer>();
	div_avrohan = new TreeSet<Integer>();
	widthup=max_x/raga.arohan.size();

	for(int i=1;i<raga.arohan.size();i++)
	{
		System.out.println(">>><<<>><><"+i*widthup);
		div_arohan.add((int)(i*widthup));
	}
	widthdown=max_x/raga.avrohan.size();
	for(int i=1;i<raga.avrohan.size();i++)
	{
		System.out.println(">>><<<>><><"+i*widthdown);
		div_avrohan.add((int)(i*widthdown));
	}
	}

	
	catch (Exception e) {
		e.printStackTrace();
	}
}
	

}
